package com.example.yyjgit.Service;


import com.example.yyjgit.Entity.User;
import com.example.yyjgit.Impl.UserImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService implements UserImpl {
    @Resource
    UserImpl userimpl;

    /**
     * 用户登录
     *
     * @param ISUName 账号
     * @param Pwd     密码
     * @return
     */
    @Override
    public User login(String ISUName, String Pwd) {
        return userimpl.login(ISUName, Pwd);
    }

    /**
     * 邮箱登录
     *
     * @param EmailAddress
     * @return
     */
    @Override
    public User getUserByEmail(String EmailAddress) {
        return userimpl.getUserByEmail(EmailAddress);
    }

    /**
     * 指纹登录
     *
     * @param fingerPrintId
     * @return
     */
    @Override
    public User fingerprintLogin(String fingerPrintId) {
        return userimpl.fingerprintLogin(fingerPrintId);
    }

    @Override
    public int regiter(String ISUName, String Pwd, String Phone, String EmailAddress) {
        return userimpl.regiter(ISUName, Pwd, Phone, EmailAddress);
    }
}
